#include "../include/ehome.h"

#define DRV_BEEP_ON         0X100008
#define DRV_BEEP_OFF         0X100009

void beep_operations(int cmd){
    int fd=open("/dev/beep",O_RDONLY);
    if(fd<0){
        pr_debug("open beep failed");
        return ;
    }
    if(cmd){
        ioctl(fd,DRV_BEEP_ON,NULL);
    }else{
        ioctl(fd,DRV_BEEP_OFF,NULL);
    }
    close(fd);
}
